package com.athena.crm.service;

import com.athena.common.core.domain.entity.SysUser;
import com.athena.common.core.domain.model.LoginUser;
import com.athena.crm.domain.CrmClue;
import com.athena.crm.domain.bo.CrmClueBo;
import com.athena.crm.domain.bo.TUnlockRecordBo;
import com.athena.crm.domain.vo.CrmClueVo;
import com.athena.common.core.page.TableDataInfo;
import com.athena.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * CRM线索Service接口
 *
 * @author ruoyi
 * @date 2023-07-02
 */
public interface ICrmClueService {

    /**
     * 查询CRM线索
     */
    CrmClueVo queryById(Long id);

    /**
     * 查询CRM线索列表
     */
    TableDataInfo<CrmClueVo> queryPageList(LoginUser loginUser, CrmClueBo bo, PageQuery pageQuery);

    /**
     * 查询用户信息
     * @return
     */
    Map<String, SysUser> getUserMap();

    /**
     * 查询CRM线索列表
     */
    List<CrmClueVo> queryList(LoginUser loginUser, CrmClueBo bo);

    /**
     * 新增CRM线索
     */
    Boolean insertByBo(CrmClueBo bo);

    /**
     * 修改CRM线索
     */
    Boolean updateByBo(CrmClueBo bo);

    /**
     * 校验并批量删除CRM线索信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 批量添加线索数据
     */
    List<CrmClue> batchInsertByBo(List<CrmClue> crmClues);

}
